package zut.cs.liziflower.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import zut.cs.liziflower.entity.Orderitems;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author xuwenke
 * @since 2022-05-26
 */
public interface OrderitemsMapper extends BaseMapper<Orderitems> {

    int addItem(@Param("orderid") Integer orderid, @Param("userid") Integer userid, @Param("flowerid") Integer flowerid, @Param("num") Integer num);

    List<Orderitems> getAllItems(@Param("orderid") Integer orderid, @Param("userid") Integer userid);
}
